﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using RTEditor;

/// <summary>
/// 用于存储锚点组的数据的
/// </summary>
public class Form_ConfigAreaPanel : MonoSingletonBase<Form_ConfigAreaPanel>
{
    [HideInInspector]
    public InputField curInputField;

    // Start is called before the first frame update
    void Start()
    {
        
    }

    // Update is called once per frame
    void Update()
    {
        if (curInputField)
        {
            GameObject rteLastGo = EditorObjectSelection.Instance.LastSelectedGameObject;
            if (rteLastGo && rteLastGo.GetComponent<Anchor>())
            {
                curInputField.text = rteLastGo.name;
            }
        }
    }
}
